5c1388a2b9863ae3b325d97b40379e8731038ab4,src/main/java/act/handler/builtin/StaticResourceGetter.java,StaticResourceGetter,StaticResourceGetter,#String#,48
Before Change
private Map<String, String> cachedContentType = new HashMap<>();
private Map<String, Boolean> cachedFailures = new HashMap<>();
public StaticResourceGetter(String base) {
String path = base;
if (!base.startsWith(SEP)) {
path = SEP + base;
}
this.base = path;
this.baseUrl = StaticFileGetter.class.getResource(path);
After Change
private Map<String, Boolean> cachedFailures = new HashMap<>();
public StaticResourceGetter(String base) {
String path = S.ensureStartsWith(base, SEP);
this.base = path;
this.baseUrl = StaticFileGetter.class.getResource(path);
E.illegalArgumentIf(null == this.baseUrl, "Cannot find base URL: %s", base);